 
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="doantotnghiep.model.Customer"%>
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@page import="java.util.ArrayList"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Cập nhật thông tin khách hàng</title>
</head>

<br>
<br>
<div >
	<center>
		<h1 style="color: blue;">CẬP NHẬT THÔNG TIN KHÁCH HÀNG</h1>
		<br> <br>


		<p style="color: green; font-size: 15px; font-weight: bold;">
		</p>

		<br>

		<!-- form nhập dữ liệu -->

		<div align="center">

       <form:form method="POST" commandName="CustomerDTO" >
		<table>
			<form:hidden path="id" value="${customerDTO.id}" />
			<tr>
				<td><form:label path="fullName">Tên khách hàng:</form:label></td>
				<td><form:input id= "fullName" path="fullName"value="${customerDTO.fullName}"></form:input></td>
				<td><span id="customername-error" style="color:red"> </span></td>
				
			</tr>
			<tr>
				<td><form:label path="address">Địa chỉ:</form:label></td>
				<td><form:input  id ="address" path="address" value="${customerDTO.address}" /></td>	
				<td><span id="customeraddress-error" style="color:red"> </span></td>
			</tr>
            <tr>
				<td><form:label path="telNumber">Điện thoại:</form:label></td>
				<td><form:input id ="telNumber" path="telNumber" value="${customerDTO.telNumber}" /></td>	
				<td><span id="customertelnumber-error" style="color:red"> </span></td>
			</tr>
			<tr>
				<td ><input id="editcustomersubmit" type="button" value="Cập nhật" /></td>
				<td ><input id="editcustomercancel" type="button" value="Hủy" /></td>
			</tr>
		 </table>
	     </form:form>

		</div>


	</center>
</div>
<br>
<br>
<br>
<br>
<br>
<br>
</body>
</html>
